class LightBean {
  LightBean({
    this.lastDetectionTime,
    this.fixtureId,
    this.customerId,
    this.fixtureName,
    this.fixtureBrand,
    this.fixtureModel,
    this.fixtureImg,
    this.fixtureType,
    this.installationDate,
    this.fixtureStatus,
    this.brightnessAdjustment,
    this.colorTemperatureAdjustment,
    this.remark,
    this.ifBack,
    this.sysCode,
  });

  LightBean.fromJson(dynamic json) {
    lastDetectionTime = json['lastDetectionTime'];
    fixtureId = json['fixtureId'];
    customerId = json['customerId'];
    fixtureName = json['fixtureName'];
    fixtureBrand = json['fixtureBrand'];
    fixtureModel = json['fixtureModel'];
    fixtureImg = json['fixtureImg'];
    fixtureType = json['fixtureType'];
    installationDate = json['installationDate'];
    fixtureStatus = json['fixtureStatus'];
    brightnessAdjustment = json['brightnessAdjustment'];
    colorTemperatureAdjustment = json['colorTemperatureAdjustment'];
    remark = json['remark'];
    ifBack = json['ifBack'];
    if (json['sysCode'] != null) {
      sysCode = SysCode.fromJson(json['sysCode']);
    }
  }
  String? lastDetectionTime;
  String? fixtureId;
  String? customerId;
  String? fixtureName;
  String? fixtureBrand;
  String? fixtureModel;
  String? fixtureImg;
  String? fixtureType;
  String? installationDate;
  String? fixtureStatus;
  String? brightnessAdjustment;
  String? colorTemperatureAdjustment;
  String? remark;
  bool? ifBack;
  SysCode? sysCode;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['lastDetectionTime'] = lastDetectionTime;
    map['fixtureId'] = fixtureId;
    map['customerId'] = customerId;
    map['fixtureName'] = fixtureName;
    map['fixtureBrand'] = fixtureBrand;
    map['fixtureModel'] = fixtureModel;
    map['fixtureImg'] = fixtureImg;
    map['fixtureType'] = fixtureType;
    map['installationDate'] = installationDate;
    map['fixtureStatus'] = fixtureStatus;
    map['brightnessAdjustment'] = brightnessAdjustment;
    map['colorTemperatureAdjustment'] = colorTemperatureAdjustment;
    map['remark'] = remark;
    map['ifBack'] = ifBack;
    if (sysCode != null) {
      map['sysCode'] = sysCode!.toJson();
    }
    return map;
  }
}

class SysCode {
  SysCode({
    this.codeCode,
    this.codeType,
    this.upperCode,
    this.codeName,
    this.codeValue,
    this.codeStatus,
    this.remark,
    this.teachFilePath,
    this.userId,
  });

  SysCode.fromJson(dynamic json) {
    codeCode = json['codeCode'];
    codeType = json['codeType'];
    upperCode = json['upperCode'];
    codeName = json['codeName'];
    codeValue = json['codeValue'];
    codeStatus = json['codeStatus'];
    remark = json['remark'];
    teachFilePath = json['teachFilePath'];
    userId = json['userId'];
  }
  String? codeCode;
  String? codeType;
  String? upperCode;
  String? codeName;
  String? codeValue;
  String? codeStatus;
  String? remark;
  String? teachFilePath;
  String? userId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['codeCode'] = codeCode;
    map['codeType'] = codeType;
    map['upperCode'] = upperCode;
    map['codeName'] = codeName;
    map['codeValue'] = codeValue;
    map['codeStatus'] = codeStatus;
    map['remark'] = remark;
    map['teachFilePath'] = teachFilePath;
    map['userId'] = userId;
    return map;
  }
}
